﻿using CadLongPipeMod.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Navigation.Regions;
using System.DirectoryServices.ActiveDirectory;
using DemoPrism.Core;

namespace CadLongPipeMod
{
    public class CadLongPipeModModule : IModule
    {
        private readonly IRegionManager _regionManager;

        public CadLongPipeModModule(IRegionManager regionManager)
        {
            _regionManager = regionManager;
        }

        public void OnInitialized(IContainerProvider containerProvider)
        {
            _regionManager.RequestNavigate(RegionNames.ContentRegion, "ClpWin");
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<ClpWin>();
        }
    }
}